<template>
	<view class="transfer">
		<u--input placeholder="请输入账户" border="surround" suffixIcon="account-fill"
			suffixIconStyle="color: #909399;font-size: 24px" v-model="account">
			<u--text text="目标账户" slot="prefix" margin="0 3px 0 0" type="tips"></u--text>
		</u--input>
		<!-- 支付方式 -->
		<view class="payment_methods">
			<view class="payment_methods_title">选择转账币种</view>
			<view class="alipay tools" @tap="ccy = 'fs'">
				<image src="../../static/img/hyPay.png" style="width: 60rpx;height: 60rpx;" mode=""></image>
				<view class="tools_title">火源</view>
				<radio :checked="ccy == 'fs'" color="var(--echo-main-color)" />
			</view>
			<!-- <view class="weChat tools" @tap="ccy = 'fc'">
				<u-icon name="weixin-fill" size="30px"></u-icon>
				<view class="tools_title">原力</view>
				<radio :checked="ccy == 'fc'" color="var(--echo-main-color)" />
			</view> -->
		</view>
		<view class="tips">资金将实时到账,请确定好再转账</view>
		<u-button type="primary" text="下一步" @tap="goToConfirmTransfer" color="var(--echo-main-color)"></u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				account: '', // 转账账户
				species: '', // 币种
				ccy: '',
			}
		},
		methods: {
			// 转账,下一步
			goToConfirmTransfer() {
				uni.navigateTo({
					// url: "/pages/userCenter/confirmTransfer?account=" + this.account + '&paytype=' + this.paytype
					url: `/pages/userCenter/confirmTransfer?account=${this.account}&ccy=${this.ccy}`
				})
			}
		}
	}
</script>

<style lang="scss">
	.transfer {
		padding: 40rpx;

		// 充值方式
		.payment_methods {
			padding: 40rpx 0;
			border-bottom: solid 0.5px #eee;

			.payment_methods_title {
				font-size: 34rpx;
				margin-bottom: 30rpx;
			}

			.alipay {
				margin-bottom: 40rpx;
			}

			.tools {
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 30rpx;

				.tools_title {
					width: 65%;
				}
			}

		}

		.tips {
			color: #999;
			font-size: 26rpx;
			padding: 30rpx 0;
		}
	}
</style>
